Police apologize; High Court dismisses case against them for posing with accused